package com.gitee.wsl.io.channel.read.ext

import com.gitee.wsl.io.channel.read.ByteReadChannel
import com.gitee.wsl.io.readBytes


suspend fun ByteReadChannel.toByteArray(): ByteArray {
    return readBuffer().readBytes()
}